<template>
  <div class="kva-notfound">
    <div>
      <el-result title="404" sub-title="Sorry, request error">
        <template #icon>
          <el-image
              src="https://demo.gin-vue-admin.com/assets/notFound-4e921f05.png"
          />
          <p>页面被神秘力量吸走了（如果您是开源版请联系我们修复）</p>
          <p>常见问题为当前此角色无当前路由，如果确定要使用本路由，请到角色管理进行分配</p>
        </template>
        <template #extra>
          <el-button type="primary" @click="handleBack">Back</el-button>
        </template>
      </el-result>
    </div>
  </div>
</template>

<script setup>
const handleBack = () => {
  window.location.href = "/"
}
</script>

<style scoped lang="scss">
  .kva-notfound{display: flex;height:100vh;justify-content: center;text-align: center;align-items: center;}
</style>
